<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>多图缩放</title>
    <style>
        .div{
            width:346px;
            height: 346px;
            border: 1px solid black;
            margin: 200px 500px;
        }
        div{
            width: 100px;
            height: 100px;
            border: 1px solid black;
            margin-left: 10px;
            margin-top: 10px;
            float: left;
            cursor: pointer;
        }
        div img{
            width: 100%;
            height: 100%;
            position: relative;
            z-index: 1;
            transition:transform 1s;
        }
        img:hover{
            transform: scaleX(2) scaleY(2);
            z-index: 2;
        }
    </style>
</head>
<body>
    <div class="div">
        <div><img src="./图片/2.jpg"></div>
        <div><img src="./图片/3.jpg"></div>
        <div><img src="./图片/4.jpg"></div>
        <div><img src="./图片/5.jpg"></div>
        <div><img src="./图片/7.jpg"></div>
        <div><img src="./图片/8.jpg"></div>
        <div><img src="./图片/2.jpg"></div>
        <div><img src="./图片/3.jpg"></div>
        <div><img src="./图片/4.jpg"></div>
    </div>
</body>
</html>